/*
 * =====================================================================================
 *
 *       Filename:  main.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  02/12/2011 06:21:39 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  dp (8023), dp8023@gmail.com
 *        Company:  
 *
 * =====================================================================================
 */

#include "person.h"
#include "tshirts.h"
#include "trousers.h"
#include "hats.h"
#include "nikes.h"

int main(int argc, char **argv)
{
	person *psky = new person("sky");

	hats *phat = new hats();
	tshirts *ptshirt = new tshirts();
	trousers *ptrouser = new trousers();
	nikes *pnike = new nikes();

	phat->adddecorator(psky);
	ptshirt->adddecorator(phat);
	ptrouser->adddecorator(ptshirt);
	pnike->adddecorator(ptrouser);

//	pnike->adddecorator(ptrouser->adddecorator(ptshirt->adddecorator(phat->adddecorator(psky))));
	
	pnike->show();
	cout << endl;

	delete pnike;
	delete ptrouser;
	delete ptshirt;
	delete phat;
	delete psky;

	return 0;
}

